
#include "fish.h"


Fish::Fish():Qpixmapitem()
{

}


Fish::Fish(const QString FileName,QGraphicsScene*scene):Qpixmapitem(FileName,scene)
{

}


void Fish::advance(int phase)
{
    if(mapToScene(0,0).y()<=0||mapToScene(0,0).x()>=2000)
    this->setPos(-300,100+rand()%1000);

    this->setPos(mapToScene(rand()%25,-rand()%5));

}

